package com.bytedance.common.plugin.interfaces.pushmanager.classhandle;

import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.Set;

public class PushClassTest {
    protected static Set sMainNeedClassSet;
    protected static Set sPushNeedClassSet;
    protected static Set sPushServiceNeedClassSet;

    static {
        LinkedHashSet v0 = new LinkedHashSet();
        PushClassTest.sPushServiceNeedClassSet = new LinkedHashSet();
        PushClassTest.sPushServiceNeedClassSet.add("com.xiaomi.push.service.XMPushService");
        PushClassTest.sPushServiceNeedClassSet.add("com.xiaomi.push.service.XMJobService");
        PushClassTest.sPushServiceNeedClassSet.add("com.xiaomi.push.service.receivers.PingReceiver");
        PushClassTest.sPushServiceNeedClassSet.add("com.taobao.accs.ChannelService");
        PushClassTest.sPushServiceNeedClassSet.add("com.taobao.accs.EventReceiver");
        PushClassTest.sPushServiceNeedClassSet.add("com.taobao.accs.ServiceReceiver");
        PushClassTest.sPushServiceNeedClassSet.add("com.taobao.accs.ChannelService$KernelService");
        PushClassTest.sPushServiceNeedClassSet.add("com.umeng.message.UmengMessageIntentReceiverService");
        PushClassTest.sPushServiceNeedClassSet.add("com.umeng.UmengMessageHandler");
        PushClassTest.sPushServiceNeedClassSet.add("com.huawei.android.pushagent.PushEventReceiver");
        PushClassTest.sPushServiceNeedClassSet.add("com.huawei.android.pushagent.PushBootReceiver");
        PushClassTest.sPushServiceNeedClassSet.add("com.huawei.android.pushagent.PushService");
        PushClassTest.sPushServiceNeedClassSet.add("com.alibaba.sdk.android.push.channel.TaobaoRecvService");
        PushClassTest.sPushServiceNeedClassSet.add("com.alibaba.sdk.android.push.AliyunPushIntentService");
        PushClassTest.sPushServiceNeedClassSet.add("com.alibaba.sdk.android.push.SystemEventReceiver");
        PushClassTest.sPushServiceNeedClassSet.add("com.alibaba.sdk.android.push.CloudPushIntentService");
        PushClassTest.sPushNeedClassSet = new LinkedHashSet();
        PushClassTest.sPushNeedClassSet.add("com.ss.android.message.MessageReceiver");
        PushClassTest.sPushNeedClassSet.add("com.ss.android.push.daemon.PushService");
        PushClassTest.sPushNeedClassSet.add("com.ss.android.push.daemon.PushReceiver");
        PushClassTest.sPushNeedClassSet.add("com.ss.android.message.NotifyService");
        PushClassTest.sPushNeedClassSet.add("com.ss.android.message.NotifyIntentService");
        PushClassTest.sPushNeedClassSet.add("com.ss.android.message.PushJobService");
        PushClassTest.sPushNeedClassSet.add("com.ss.android.message.log.LogService");
        PushClassTest.sMainNeedClassSet = new LinkedHashSet();
        PushClassTest.sMainNeedClassSet.add("com.xiaomi.mipush.sdk.PushMessageHandler");
        PushClassTest.sMainNeedClassSet.add("com.xiaomi.mipush.sdk.MessageHandleService");
        PushClassTest.sMainNeedClassSet.add("com.xiaomi.push.service.receivers.NetworkStatusReceiver");
        PushClassTest.sMainNeedClassSet.add("com.xiaomi.push.service.receivers.MIPushMessageHandler");
        PushClassTest.sMainNeedClassSet.add("com.taobao.accs.data.MsgDistributeService");
        PushClassTest.sMainNeedClassSet.add("org.android.agoo.accs.AgooService");
        PushClassTest.sMainNeedClassSet.add("com.umeng.message.UmengIntentService");
        PushClassTest.sMainNeedClassSet.add("com.taobao.agoo.AgooCommondReceiver");
        PushClassTest.sMainNeedClassSet.add("com.umeng.message.UmengMessageCallbackHandlerService");
        PushClassTest.sMainNeedClassSet.add("com.huawei.push.service.receivers.HWPushMessageHandler");
        PushClassTest.sMainNeedClassSet.add("com.meizu.cloud.pushsdk.NotificationService");
        PushClassTest.sMainNeedClassSet.add("com.meizu.cloud.pushsdk.SystemReceiver");
        PushClassTest.sMainNeedClassSet.add("com.ss.android.article.lite.MzPushMsgReceiver");
        PushClassTest.sMainNeedClassSet.add("com.alibaba.sdk.android.push.PushIntentService");
        PushClassTest.sMainNeedClassSet.add("com.alibaba.sdk.android.push.MsgService");
        PushClassTest.sMainNeedClassSet.add("com.aliyun.AliyunMessageReceiver");
        PushClassTest.sMainNeedClassSet.add("com.ss.android.newmedia.redbadge.RedbadgeHandler");
        PushClassTest.sMainNeedClassSet.add("com.ss.android.http.OpenUrlService");
    }

    public PushClassTest() {

    }

    public static void testClass(boolean arg1) throws ClassNotFoundException {
        Set v0 = arg1 ? PushClassTest.sPushServiceNeedClassSet : PushClassTest.sMainNeedClassSet;
        PushClassTest.testClassSet(v0);
    }

    protected static void testClassSet(Set arg2) throws ClassNotFoundException {
        if (arg2 != null) {
            Iterator<String> v1 = arg2.iterator();
            while (v1.hasNext()) {
                Class.forName(v1.next());
            }
        }
    }

    public static void testMainClass() throws ClassNotFoundException {
        PushClassTest.testClassSet(PushClassTest.sMainNeedClassSet);
    }

    public static void testPushClass() throws ClassNotFoundException {
        PushClassTest.testClassSet(PushClassTest.sPushNeedClassSet);
    }

    public static void testPushServiceClass() throws ClassNotFoundException {
        PushClassTest.testClassSet(PushClassTest.sPushServiceNeedClassSet);
    }
}

